package com.swinginwind;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

public class BaseDao {
	
	private JdbcTemplate jdbcTemplate;
	
	public List<Map<String, Object>> excuteQuery(String sql, Object... args)
	{
		return getJdbcTemplate().queryForList(sql, args);
	}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

}
